package model

import "time"

type OrderDetail struct {
	Id          uint       `json:"id"`
	OrderId     uint       `json:"order_id"`
	ProductId   uint       `json:"product_id"`
	Quantity    int        `json:"quantity"`
	Price       float32    `json:"price"`
	TotalPrice  float32    `json:"total_price"`
	CreatedTime *time.Time `json:"created_time"`
	UpdatedTime *time.Time `json:"updated_time"`
	DeletedTime *time.Time `json:"deleted_time"`
}

func (o *OrderDetail) TableName() string {
	return "order_detail"
}
